<!--
 * @Author: Wushiqi
 * @Descripttion: 
 * @Date: 2020-09-07 22:12:31
 * @LastEditors: Wushiqi
 * @LastEditTime: 2020-09-13 16:36:54
-->
<template>
  <div>
    <div class="edit-banner" @click="bannerClick">
      <span>{{ left }}</span>
      <span><slot name="right" /></span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    left: {
      default: '',
      type: String
    }
  },
  methods: {
    bannerClick: function() {
      this.$emit('bannerClick')
    }
  }
}
</script>

<style scoped lang="scss">
.edit-banner {
  padding: 4.167vw;
  background-color: white;
  border-bottom: 0.278vw solid #d8d8d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 3.889vw;
  color: #888;
}
</style>